﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace EzyGoEzySystem.Models
{
    public class StraightLineDistance
    {
        #region Scalar Properties

        [Key]
        public int ID { get; set; }

        [Required]
        public int StartBusStopID { get; set; }

        [Required]
        public int EndBusStopID { get; set; }

        [Required]
        public double Distance { get; set; }

        #endregion

        // foreign key
        public virtual BusStop StartBusStop { get; set; }

        public virtual BusStop EndBusStop { get; set; }

    }
}